package block;

import texture.Texture;
import texture.TextureLoader;
import block.Block;
import font.Material;

public class Block {
	public final static int MAX_BLOCK_ID = 4096;
	private int ID;
	protected Material material;
	protected String textureName;

	public Block(int ID, Material material) {
		this.ID = ID;
		this.material = material;
	}

	public static final Block[] blocksList = new Block[4096];

	public boolean getTickRandomly() {
		return false;
		// return this.needsRandomTick;
	}

	public int getID() {
		return ID;
	}
	
	public void regestTextures(){
		String fileName  ="assets/textures/blocks/"+textureName+".png"; 
		TextureLoader.getTexture(fileName);
	}
	
	public Texture bindTextures(){
		String fileName  ="assets/textures/blocks/"+textureName+".png"; 
		return TextureLoader.getTexture(fileName);
	}

}
